# Contributor: Saijin-Naib <2107-Saijin-Naib@users.gitlab.alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=thunarx-python
pkgver=0.5.2
pkgrel=2
pkgdesc="Python bindings for the Thunar Extension Framework"
url="https://wiki.xfce.org/thunarx-python"
arch="all"
license="GPL-3.0-or-later"
makedepends="gtk-doc python3-dev py3-gobject3-dev thunar-dev"
subpackages="$pkgname-doc"
source="https://archive.xfce.org/src/bindings/thunarx-python/${pkgver%.*}/thunarx-python-$pkgver.tar.bz2"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr
	make
}

# Run in-built tests as per the INSTALL instructions
check() {
	make check
	make installcheck
}

package() {
	make install DESTDIR="$pkgdir"
}
sha512sums="
49d009c84d69f0a1938ed6cb46fe04326c7323edecd79f6d9978ce2306fb95f20c901174f1cea31d5e436c85537efcb79c8613be857a3e4143f7b55b895616b6  thunarx-python-0.5.2.tar.bz2
"
